package com.kfm.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "file")
@Data
public class FileConfig {
    private static String localPath;
    private static String ip;
    private static String port;
    private static String username;
    private static String password;

    public static String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        FileConfig.ip = ip;
    }

    public static String getPort() {
        return port;
    }

    public void setPort(String port) {
        FileConfig.port = port;
    }

    public static String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        FileConfig.username = username;
    }

    public static String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        FileConfig.password = password;
    }

    public static String getLocalPath() {
        return localPath;
    }

    public void setLocalPath(String localPath) {
        FileConfig.localPath = localPath;
    }
}
